HipFont

Undocumented in source.

Members

Functions

calculateTextBounds
void calculateTextBounds(dstring text, uint[] linesWidths, int biggestWidth, int height, int maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
characters
HipFontChar[dchar] characters()

////Properties///////

characters
const(HipFontChar[dchar]) characters()
Undocumented in source. Be warned that the author may not have intended to support it.
getFontWithSize
HipFont getFontWithSize(uint size)
Undocumented in source.
getKerning
int getKerning(dchar current, dchar next)
Undocumented in source.
getKerning
int getKerning(const(HipFontChar)* current, const(HipFontChar)* next)
Undocumented in source.
lineBreakHeight
uint lineBreakHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
lineBreakHeight
uint lineBreakHeight(uint newHeight)
Undocumented in source. Be warned that the author may not have intended to support it.
spaceWidth
uint spaceWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
spaceWidth
uint spaceWidth(uint newWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
texture
IHipTexture texture()
Undocumented in source. Be warned that the author may not have intended to support it.
wordWrapRange
HipWordWrapRange wordWrapRange(dstring text, int maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_characters
HipFontChar[dchar] _characters;
Undocumented in source.
_lineBreakHeight
uint _lineBreakHeight;

How much the line break will offset in Y the next char

_spaceWidth
uint _spaceWidth;

Saves the space width for the bitmap text process the ' '. If the original spaceWidth is == 0, it won't draw a quad

_texture
IHipTexture _texture;

Underlying GPU texture

Inherited Members

From IHipFont

getKerning
int getKerning(const(HipFontChar)* current, const(HipFontChar)* next)
Undocumented in source.
getKerning
int getKerning(dchar current, dchar next)
Undocumented in source.
calculateTextBounds
void calculateTextBounds(dstring text, uint[] linesWidths, int biggestWidth, int height, int maxWidth)
wordWrapRange
HipWordWrapRange wordWrapRange(dstring text, int maxWidth)
Undocumented in source.
characters
HipFontChar[dchar] characters()
Undocumented in source.
texture
IHipTexture texture()
Undocumented in source.
spaceWidth
uint spaceWidth()
Undocumented in source.
spaceWidth
uint spaceWidth(uint newWidth)
Undocumented in source.
lineBreakHeight
uint lineBreakHeight()
Undocumented in source.
lineBreakHeight
uint lineBreakHeight(uint newHeight)
Undocumented in source.

Meta